package QianFeng07.IODemo2.DecoratorPattern;
/**
 * 具体的装饰者对象
 * 鸡蛋
 **/
public class EggDecorator extends Decorator{
    public EggDecorator(Drink drink) {
        super(drink);
    }

    @Override
    public float cost() {
        return super.cost() + 3.0f;
    }

    @Override
    public String description() {
        return super.description() + "+鸡蛋";
    }
}
